import { createRouter, createWebHistory } from "vue-router";
import BossDashboard from "../views/BossDashboard.vue";
import Tables from "../views/Tables.vue";
import Billing from "../views/Billing.vue";
import VirtualReality from "../views/VirtualReality.vue";
import RTL from "../views/Rtl.vue";
import Profile from "../views/Profile.vue";
import Signup from "../views/Signup.vue";
import Signin from "../views/Signin.vue";
import Facility from "../views/Facility.vue";
import Forget from "../views/Forget.vue";
import HomePage from "../views/HomePage.vue"
import Order from "../views/Orders.vue"
import CreateFacility from "../views/CreateFacility.vue";
import Booking from "../views/Booking.vue";
import User from "../views/User.vue";

const routes = [
  {
    path: "/",
    name: "/",
    redirect: "/homepage",
  },
  {
    path: "/orders",
    name: "Order",
    component: Order,
  },
  {
    path: "/dashboard-default",
    name: "Dashboard",
    component: BossDashboard,
  },
  {
    path: "/tables",
    name: "Tables",
    component: Tables,
  },
  {
    path: "/billing",
    name: "Billing",
    component: Billing,
  },
  {
    path: "/booking",
    name: "Booking",
    component: Booking,
  },
  {
    path: "/virtual-reality",
    name: "Virtual Reality",
    component: VirtualReality,
  },
  {
    path: "/rtl-page",
    name: "RTL",
    component: RTL,
  },
  {
    path: "/profile",
    name: "Profile",
    component: Profile,
  },
  {
    path: "/signin",
    name: "Signin",
    component: Signin,
  },
  {
    path: "/signup",
    name: "Signup",
    component: Signup,
  },
  {
    path: "/facility",
    name: "Facility",
    component: Facility,
  },
  {
    path:"/homepage",
    name: "Homepage",
    component: HomePage,
  },
  {
    path:"/createfacility",
    name:"createfacility",
    component: CreateFacility
  },
  {
    path:"/forget",
    name:"Forget",
    component: Forget
  },
  {
    path:"/user",
    name:"user",
    component: User
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
  linkActiveClass: "active",
});

export default router;
